package cupk.abner.ConcreteComponent;

import cupk.abner.Component;
import cupk.abner.Mediator;

public class TextBox extends Component {
    public void setText(){
        System.out.println("文本框增加文本");
        changed();
    };
    @Override
    public void setMediator(Mediator mediator) {
        this.mediator = mediator;
    }

    @Override
    public void changed() {

    }

    @Override
    public void update() {
        System.out.println("文本框更新");
    }
}
